home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Applications 2002 November / SGI IRIX 6.5 Applications 2002 November.iso / dev / java2v131_02_dev.idb / usr / demos / java2v131_02 / JNI-simple-test / hello.c.z / hello.c
C/C++ Source or Header  |  2002-06-19  |  455b  |  17 lines

  1.  
  2. /* HelloWorld.h generated by applying javah
  3.    on the Java class, and contains the
  4.    function declaration for the native method
  5. */
  6. #include "HelloWorld.h"
  7.  
  8. /* used for printf */
  9. #include "stdio.h"
  10.  
  11. void Java_HelloWorld_sayHelloWorld(JNIEnv *env, jobject obj) {
  12.   printf("\nGreeting from the untamed native world!\n");
  13.   printf("You have spoken to us through the JNI -- ");
  14.   printf("that is Java Native Interface\n");
  15.   printf("Congratulations\n\n");
  16. }
  17.